import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

// 全局注册 store
export function setupStore(app) {
  app.use(pinia);
}
export default pinia;
